
/**
 * Write a description of class PairofDice here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class PairofDice
{
    private die die1, die2;
    private int total;
    
    public PairofDice()
    {
        die1 = new die();
        die2 = new die();
        total = die1.getResult() + die2.getResult();
    }
    
    public int rollDice()
    {
        total = die1.roll() + die2.roll();
        return total;
    }
    
    public int getResult1()
    {
        return die1.getResult(); 
    }
    public int getResult2()
    {
        return die2.getResult();
    }
    public int getTotal ()
    {
        return total;
    }
}


